#include "startpage.h"
#include "ui_startpage.h"

startpage::startpage(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::startpage)
{
    ui->setupUi(this);
    setWindowTitle("智能网关");
    setWindowIcon(QIcon(":/智能家居.png"));

    QMovie *showGif = new QMovie(":/starpage.png");
    ui->gifLab->setMovie(showGif);
    showGif->start();
    ui->pushButton->setIcon(QIcon(":/点击触发.png"));
    ui->pushButton->setIconSize(QSize(100,100));

}

startpage::~startpage()
{
    delete ui;
}

void startpage::on_pushButton_clicked()
{
    widget = new Widget;
    widget->show();
    this->close();
}
